<?php
use yii\helpers\Html;
use yii\widgets\DetailView;

/**
 *
 * @var yii\web\View $this
 * @var common\modules\rbac\backend\models\AuthItem $model
 */
$this->title = $model->name;
$this->params['breadcrumbs'][] = [
    'label' => 'Rules',
    'url' => [
        'index'
    ]
];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="auth-item-view">

	<p>
        <?= Html::a(Yii::t('backend', 'Update'), ['update', 'id' => $model->name], ['class' => 'btn btn-primary'])?>
        <?php
        echo Html::a(Yii::t('backend', 'Delete'), [
            'delete',
            'id' => $model->name
        ], [
            'class' => 'btn btn-danger',
            'data-confirm' => Yii::t('backend', 'Are you sure to delete this item?'),
            'data-method' => 'post'
        ]);
        ?>
    </p>

    <?php
    echo DetailView::widget([
        'model' => $model,
        'attributes' => [
            'name',
            'className'
        ]
    ]);
    ?>
</div>
